package com.djl.sqtg.service;

import com.djl.sqtg.entity.*;

import java.util.List;

public interface IGoodsService {
    List<Goods> getAllGoods();
    List<LightDeals> getLightdealsGoods();
    List<Goods> getHotGoods();
    List<Goods> getMarketingstatusGoods();
    List<Goods> getGoodsByKey(String key);
    Goods getGoodsById(Integer gid);
    Integer addUserClick(Integer uid,Integer gid);
    Integer addUserClickNum(Integer uid,Integer gid,Integer click);
    Integer getUserClickNumByUidGid(Integer uid,Integer gid);
    List<ItemCF> getAllItemCF();
    List<Goods> getAllGoodsByIds(List<Long> Gids);

    Integer getAllGoodsNum();
    Integer getGoodsBySearchNum(String keyword);
    List<Goods>  goodsSoldTop();
    List<Goods>  getGoodsByPageNum(Integer pageNum, Integer pageSize);
    List<Goods>  getGoodsBySearch(String keyword,Integer pageNum, Integer pageSize);
    String getCosDirectory(Integer gcid);
    Integer addGoods(Goods goods);
    Integer delGoodsByGid(Integer gid);
    Integer delManyGoods(Integer[] gids);
    List<GoodsSales> getTodayHotGoods(String date);
    List<GoodsSales> getGoodsMoneyRank(String date);
    Integer goodsNum();

    List<GoodsSales> getTMGoodsNumRank(String[] date);
    List<GoodsSales> getTMGoodsMoneyRank(String[] date);
    List<GoodsSales> getGoodsNumTimePeriod(String startDate,String endDate);
    List<GoodsSales> getGoodsMoneyRankTimePeriod(String startDate,String endDate);
    List<Review> getGoodsReview(Integer gid);
    Integer updateGoodsState(Integer gid,Integer goodsstate);
}
